
    /*
     * Currying is a term used to describe an usefull side-effect of closures.
     * In a nutshell, currying is a method of applying variables to a functions
     * execution
     */
    
    var x= 0;
    
    function plain () 
    {
        alert(x);
    };
    
    
    function curried () 
    {
        var x= 1;
        return function () 
        {
            alert(x);
        }
    }
